﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Best.SmartCms.Domain.Common;

namespace Best.SmartCms.Domain
{
    /// <summary>
    /// 新闻频道
    /// </summary>
    [Table("Channel")]
    public class Channel:BaseDomain
    {
        
        /// <summary>
        /// 名称
        /// </summary>
        [StringLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 栏目组
        /// </summary>
        public long ChannelGroupId { get; set; }
        /// <summary>
        /// 栏目
        /// </summary>
        [StringLength(500)]
        public string Content { get; set; }
        /// <summary>
        /// 关键字
        /// </summary>
        [StringLength(255)]
        public string Keywords { get; set; }
        /// <summary>
        /// 栏目描述
        /// </summary>
        [StringLength(255)]
        public string Description { get; set; }
        /// <summary>
        /// 是否显示菜单
        /// </summary>
        public bool IsShowMenu { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int OrderNo { get; set; }

        /// <summary>
        /// 栏目显示 Controller 类型，新闻列表，产品列表，图片展示
        /// </summary>
        [StringLength(50)]
        public string ControllerName { get; set; }

        /// <summary>
        /// 栏目链接地址
        /// </summary>
        [StringLength(250)]
        public string Url { get; set; }

    }
}
